import 'package:objectbox/objectbox.dart';

@Entity()
class SettingBox {
  @Id(assignable: true)
  int id = 0;

  String deviceId;
  String userToken;
  String userId;
  DateTime firstLaunchTime;
  String appConfigVer;
  String googleTranslationKey;

  SettingBox({
    required this.id,
    required this.deviceId,
    required this.userToken,
    required this.userId,
    required this.firstLaunchTime,
    required this.appConfigVer,
    required this.googleTranslationKey,
  });

  @override
  String toString() {
    return {
      'id': id,
      'deviceId': deviceId,
      'userToken': userToken,
      'userId': userId,
      'firstLaunchTime': firstLaunchTime,
      'appConfigVer': appConfigVer,
      'googleTranslationKey': googleTranslationKey,
    }.toString();
  }
}
